package com.gxa.modules.model.entity.fee;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 住院充值订单信息表
 * </p>
 *
 * @author gxa
 * @since 2022-11-12 11:12:58
 */
@Data
@Accessors(chain = true)
@TableName("t_recharge_order_detail")
@ApiModel(value = "RechargeOrderDetail对象", description = "住院充值订单信息表")
public class RechargeOrderDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("充值订单信息id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("患者id")
    @TableField("patient_id")
    private Integer patientId;

    @ApiModelProperty("订单总额")
    @TableField("order_total")
    private Double orderTotal;

    @ApiModelProperty("0:微信支付1：住院预交金抵扣")
    @TableField("pay_method")
    private Integer payMethod;

    @ApiModelProperty("住院余额")
    @TableField("balance")
    private Double balance;

    @ApiModelProperty("0：未支付，1：已支付")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("订单编号（后台自动生成）")
    @TableField("order_num")
    private String orderNum;

    @ApiModelProperty("0:微信小程序")
    @TableField("order_from")
    private Integer orderFrom;

    @ApiModelProperty("0:住院充值，1：门诊充值")
    @TableField("business_type")
    private Integer businessType;

    @ApiModelProperty("订单时间（订单创建时间）")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("订单备注")
    @TableField("remarks")
    private String remarks;


}
